﻿
namespace Service.Core.Identity.Login;

public class LoginUserInfo
{
    /// <summary>
    /// 
    /// </summary>
    /// <param name="id"></param>
    /// <param name="account"></param>
    /// <param name="realName"></param>
    /// <param name="roles"></param>
    /// <param name="roleMaxLevel"></param>
    /// <param name="picture"></param>
    /// <param name="phone"></param>
    public LoginUserInfo(long id, string account, string realName, List<string> roles, int roleMaxLevel, string picture, string phone)
    {
        Id = id;
        RealName = realName;
        Roles = roles;
        RoleMaxLevel = roleMaxLevel;
        Account = account;
        Picture = picture;
        Phone = phone;
    }

    public string Account { get; private set; }
    public long Id { get; private set; }

    public string Phone { get; private set; }

    public string RealName { get; private set; }


    public string Picture { get; private set; }


    /// <summary>
    /// 角色
    /// </summary>
    public List<string> Roles { get; private set; }

    /// <summary>
    /// 最高等级
    /// </summary>
    public int RoleMaxLevel { get; private set; }


}